// JavaScript Document
 KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id');
        });
 
 function getBasePath(){ 
	 var obj=window.location; 
	 var contextPath=obj.pathname.split("/")[1]; 
	 var basePath=obj.protocol+"//"+obj.host+"/"+contextPath; 
	 return basePath; 
} 
 
window.onload=function(){
	//随机生成图片
	var oPart1=document.getElementById("part1");
	var oImg=oPart1.getElementsByTagName("img")[0];
	var timer=null;
	function images(){
	var path=Math.floor(4*Math.random()+1);
	oImg.src= getBasePath() + "/images/journeybtn" + path + ".jpg";
	}
	timer=setInterval(function(){
			images();
		}
	,3000);
	
	}
